<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../Cesium/Widgets/widgets.css">
    <script type="text/javascript" src="../Cesium/Cesium.js"></script>
    <title>Document</title>
</head>

<body>
    <script>
        // 初始化3D地图
        viewer = new Cesium.Viewer('map', {
            baseLayerPicker: false,  // 影像切换
            animation: false,  //是否显示动画控件
            timeline: false, //是否显示时间线控件
            infoBox: false, //是否显示点击要素之后显示的信息
            geocoder: false, //是否显示地名查找控件
            navigationHelpButton: false, //是否显示帮助信息控件
            terrainProvider: new Cesium.CesiumTerrainProvider({   // 加载地形信息
                url: 'https://www.supermapol.com/realspace/services/3D-stk_terrain/rest/realspace/datas/info/data/path',
                requestVertexNormals: true
            }),
        })
        // 添加mapbox自定义地图实例
        var layer = new Cesium.MapboxStyleImageryProvider({
            url: 'https://api.mapbox.com/styles/v1',
            username: 'username',
            styleId: '这里是我的styleId',
            accessToken: '这个是我的accessToken',
            scaleFactor: true
        });

    </script>
</body>

</html>